﻿using System;
using System.Security.Cryptography;
using System.Text;

namespace DesignPattern.mdFive {
    public class MdFive {
        public void Test(){
//            DateTime dateTime=new DateTime();
//            Console.WriteLine(dateTime.ToString());
//            string str = "xlnglfxidng1";
//            str += dateTime.ToString();
//            MD5 md5 = new MD5CryptoServiceProvider();
//            var a=md5.ComputeHash(Encoding.UTF8.GetBytes(str));
//            Console.WriteLine(Convert.ToBase64String(a));
//            Console.WriteLine(Encoding.UTF8.GetString(a));
            Console.WriteLine(DateTime.Now.CompareTo(DateTime.Now.AddMinutes(10)));
            Console.WriteLine(DateTime.Now.AddMinutes(-10));
        }
    }
}